class Magazine extends Book {
    private String issue;
    private String publisher;

    public Magazine(String name, String author, double price, String issue, String publisher) {
        super(name, author, price);
        this.issue = issue;
        this.publisher = publisher;
    }

    @Override
    public double getPrice() {
        return super.getPrice() * 0.75;
    }

    @Override
    public String toString() {
        return "杂志《" + getName() + "》，作者：" + getAuthor() + "，期刊号：" + issue + "，出版社：" + publisher + "，折后价格：" + getPrice() + "元";
    }
}